package opcode

//游戏内部的子协议
const (
	INIT_OPCODE = iota
	C2S_PLAYER_LOGIN_CODE		//客户端->服务端 登陆		1
	S2C_PLAYER_LOGIN_CODE		//服务端->客户端 登陆  	2

	C2S_CHOOSE_ROOM_CODE		//客户端->服务端 进房		3
	S2C_CHOOSE_ROOM_CODE		//服务端->客户端   		4
)
//玩家结构
type Player struct{
	UID	int
	PlayerName string
	OpenID string
}

type HeadProto struct {
	AreaCode int
	OpCode int
}

//客户端->服务端
type C2S_PLAYER_LOGIN struct {
	HeadProto
	//AreaCode int
	//OpCode int
	Code string //微信授权code
	UserName string
	UserPW	string
	Email string
}
//服务端->客户端
type S2C_PLAYER_LOGIN struct {
	HeadProto
	Code string //微信授权code
}
